package org.uim.cricket.analyzer.parsers;

import org.uim.cricket.analyzer.analyze.ExecutorAnalyzings;


public class FetchAnalyzerBeans extends FetchBeans {

	public static String EXECUTOR_SUFFIX = "-executor";
	public static String EXECUTOR_PREFIX = "";
	
	public FetchAnalyzerBeans(String theBeanFile) {
		super(theBeanFile);
	}
	
	public ExecutorAnalyzings fetchExecutor(String key) {
		String execKey = EXECUTOR_PREFIX + key + EXECUTOR_SUFFIX;
		Object obj = this.fetchBean(execKey);
		
		if (obj == null) return null;
		if (obj instanceof ExecutorAnalyzings) {
			return (ExecutorAnalyzings)obj;
		}
		return null;
	}
	
}
